package com.english.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.english.entity.FreeLessonAppointment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FreeLessonAppointmentMapper extends BaseMapper<FreeLessonAppointment> {
    
    /**
     * 查询预约列表并关联用户表获取学生姓名
     */
    List<FreeLessonAppointment> selectAppointmentsWithStudentName(
        @Param("studentId") Long studentId,
        @Param("date") String date,
        @Param("status") String status
    );
} 